/*
 * @Author: zhang zhijiang 2824735304@qq.com
 * @Date: 2025-05-20 19:50:55
 * @LastEditors: zhang zhijiang 2824735304@qq.com
 * @LastEditTime: 2025-05-20 20:14:27
 * @FilePath: /linux/minihttp/protocol.hpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once
#include<iostream>
#include<unistd.h>
#include"util.hpp"
class entrance
{
    public:
     void* handler_request(void* _sock)
    {
        int sock = *(int*)_sock;
        delete(int*)_sock;
           string out;
        int n = util::read_line(sock,out);
        cout<<out<<endl;
        close(sock);
     

        
        return nullptr;
    }
};